package grape.composite.rest.logresterror.mapper;

import grape.composite.rest.logresterror.form.LogRestErrorCreateForm;
import grape.composite.rest.logresterror.form.LogRestErrorListPageForm;
import grape.composite.rest.logresterror.vo.LogRestErrorVo;
import grape.composite.service.logresterror.po.LogRestError;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 接口请求异常日志表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-03-09
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface LogRestErrorWebMapper extends WebMapper<LogRestErrorVo, LogRestError> {

    LogRestError formToPo(LogRestErrorCreateForm f);
    LogRestError formToPo(LogRestErrorListPageForm f);
}
